package com.housediyadmin.view.components
{
	
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	import mx.managers.PopUpManager;
	
	import org.robotlegs.mvcs.Mediator;

	/**
	 * 
	 * @author wenjun cai
	 * 2010/11/24
	 */	
	public class PopUpGoodsTypeMediator extends Mediator
	{
		[Inject]
		public var view:PopUpGoodsType;
		
		override public function onRegister():void
		{
			view.cancel.addEventListener(MouseEvent.CLICK, close);
		}
		private function close(e:Event):void
		{
			PopUpManager.removePopUp(view);
			mediatorMap.removeMediator( this );
		}
	}
}